package com.f5.management.entity;

import com.f5.management.entity.dto.RealEstateUserDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 房产管理
 */
@Data
@Accessors(chain = true)
public class RealEstate {
    private int id;             //id
    private String serialNumber;//房产编码
    private String name;        //房产名称
    private int rooms;          //房间数
    private int unit;           //单元
    private int floor;          //楼层
    private String represent;    //描述
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT" + 24)
    private Date createTime;    //入住时间
}